package cn.stacey.day10;

import java.io.File;

import org.junit.Test;

public class DemoListDirectory {
	@Test
	public void test() {
		File dir=new File("D:\\视频\\day08");
		listDir(dir);
		
		
	}
	public void listDir(File dir) {
		File[] files=dir.listFiles();
		for(File file:files) {
			if(file.isDirectory()) {
				System.out.println(file.getAbsolutePath());
				listDir(file);
			}else {
				System.out.println(file.getAbsolutePath());
			}
		}
		
	}
}
